/*
Copyright 2009 Homosuperiorus LLC 

Licensed under the Apache License, Version 2.0 (the "License"); you may not use 
this file except in compliance with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.

*/

package org.taglets.pub.account;

public class TagletsUser {
    private String email;
    private String password;
    private String lastName;
    private String firstName;
    private int state;
    private String twitterId;
    private int twitterState;
    private String created;

    public TagletsUser(String email, String password, String firstName, String lastName, int state, String twitterId, int twitterState, String created) {
        this.email = email;
        this.password = password;
        this.firstName = firstName;
        this.lastName = lastName;
        this.state = state;
        this.twitterId = twitterId;
        this.twitterState = twitterState;
        this.created = created;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getTwitterId() {
        return twitterId;
    }

    public void setTwitterId(String twitterId) {
        this.twitterId = twitterId;
    }

    public int getTwitterState() {
        return twitterState;
    }

    public void setTwitterState(int twitterState) {
        this.twitterState = twitterState;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }
    
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("User: ");
        sb.append("<email:").append(email).append("> ");
        sb.append("<firstName:").append(firstName).append("> ");
        sb.append("<lastName:").append(lastName).append("> ");
        sb.append("<state:").append(state).append("> ");
        sb.append("<twitterId:").append(twitterId).append("> ");
        sb.append("<twitterState:").append(twitterState).append("> ");
        sb.append("<created:").append(created).append("> ");
        return sb.toString();
    }
}
